<template>
  <div class="big_middle_map_box">
    <div id="mapContainer"></div>
    <div class="middle-left">
      <div class="middle-left-1" v-for="(item,index) in leftDataList" :key="index">
        <div class="num"><span>{{ item.num }}</span>{{ item.numUnit }}</div>
        <div class="unit">{{ item.unit }}</div>
        <div class="name">{{ item.name }}</div>
      </div>
    </div>
    <div class="middle-right">
      <div class="middle-right-1" v-for="(item,index) in rightDataList" :key="index">
        <div class="num"><span>{{ item.num }}</span>/{{ item.total }}</div>
        <div class="name">{{ item.name }}</div>
      </div>
    </div>
    <div class="middle-table">

    </div>
  </div>
</template>

<script>
export default {
  name: "middle",
  data() {
    return {
      map: {},
      leftDataList: [
        {
          name: '产能部署',
          unit: '方/年',
          num: 26,
          numUnit: '亿'
        },
        {
          name: '计划钻井',
          unit: '口',
          num: 614,
          numUnit: ''
        },
        {
          name: '水平井',
          unit: '口',
          num: 64,
          numUnit: ''
        },
        {
          name: '进尺',
          unit: '万米',
          num: 238.5,
          numUnit: ''
        }
      ],
      rightDataList: [
        {
          name: '钻井',
          num: 88,
          total: 331
        },
        {
          name: '试气',
          num: 79,
          total: 107
        },
        {
          name: '测井',
          num: 0,
          total: 76
        },
        {
          name: '录井',
          num: 87,
          total: 323
        }
      ]
    }
  },
  mounted() {
    this.map = new AMap.Map('mapContainer', {
      zoom: 8,
      center: [108.9895, 38.530903],
      resizeEnable: true,
      showIndoorMap: false,
      mapStyle: "amap://styles/828584898703266e6b5173b38eeec98d",
      features: ['point', 'road', 'bg'],//地图要素
      viewMode: "2D",
      pitch: 45,
      zoomEnable: true,
    })
  }
}
</script>

<style scoped lang="scss">
.big_middle_map_box {
  width: 100%;
  height: 100%;
  position: relative;
  #mapContainer {
    width: 100%;
    height: 100%;
  }
  .middle-left {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 30px;
    .middle-left-1 {
      width: 88px;
      height: 107px;
      background: url("../../assets/images/big_middle_bg.png");
      background-size: 100% 100%;
      text-align: center;
      margin-top: 20px;
      .num {
        color: #FFB222;
        font-size: 14px;
        padding-top: 18px;
        span {
          font-size: 20px;
        }
      }
      .unit {
        color: #00BAFF;
        font-size: 12px;
        margin: 8px 0 10px 0;
      }
      .name {
        font-size: 14px;
        color: #00EAFF;
      }
    }
  }
  .middle-right {
    position: absolute;
    z-index: 999;
    top: 0;
    right: 30px;
    .middle-right-1 {
      width: 88px;
      height: 107px;
      background: url("../../assets/images/big_middle_bg.png");
      background-size: 100% 100%;
      text-align: center;
      margin-top: 20px;
      .num {
        color: #FFB222;
        font-size: 20px;
        padding-top: 18px;
        span {
          color: #00E4FF;
          font-size: 18px;
        }
      }
      .name {
        font-size: 14px;
        color: #00EAFF;
        margin-top: 20px;
      }
    }
  }
  .middle-table {
    position: absolute;
    z-index: 999;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 240px;
    background: url("../../assets/images/big_table_bg.png");
    background-size: 100% 100%;
  }
}

</style>
